﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace ProcDaemon.Configuration
{
    public class ProcessSettingsSection : ConfigurationSection
    {
        //[ConfigurationProperty("process")]
        //public ProcessSection process
        //{
        //    get
        //    {
        //        return (ProcessSection)base["process"];
        //    }
        //    set
        //    {
        //        base["process"] = value;
        //    }
        //}

        [ConfigurationProperty("processes", IsDefaultCollection = false)]
        [ConfigurationCollection(typeof(ProcessSection), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
        public Children processes
        {
            get
            {
                return (Children)base["processes"];
            }
            set
            {
                base["processes"] = value;
            }
        }
    }
}
